//
//  BKLHealth_MCFamousDoctorHeaderFooterView.m
//  BKLMedicalCare
//
//  Created by ma c on 2017/6/15.
//  Copyright © 2017年 q mac. All rights reserved.
//

#import "BKLHealth_MCTableHeaderFooterView.h"
#import "BKLHealth_MCCommon.h"
#import <Masonry.h>

@implementation BKLHealth_MCTableHeaderFooterView
- (void)fillData:(id)data {}
+ (CGFloat)computeHeight:(id)data {return 0;}
@end

#pragma mark - 只有title的 section header view
#pragma mark -
@implementation BKLHealth_MCFDTitleHeaderView
{
    UILabel *_titleLab;
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.contentView.backgroundColor = [UIColor whiteColor];
        [self initialize];
    }
    return self;
}

- (void)initialize {
    _titleLab = [[UILabel alloc] init];
    _titleLab.font = [UIFont systemFontOfSize:16];
    _titleLab.textColor = kBklHealth_bklBlack;
    [self.contentView addSubview:_titleLab];
    
    [_titleLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(self.contentView.mas_centerY);
        make.left.mas_equalTo(self.contentView.mas_left).offset(12);
    }];
}

- (void)fillData:(id)data {
    if (!data) {
        return;
    }
    _titleLab.text = data[@"title"];
}

+ (CGFloat)computeHeight:(id)data {
    return 48;
}
@end
